﻿cmake_minimum_required(VERSION 2.8)

set(BUILD_PROJECT_NAME "core")

set(SRC_LIST
	${CMAKE_CURRENT_SOURCE_DIR}/event_service.h
	${CMAKE_CURRENT_SOURCE_DIR}/event_service.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/app_interface.h
	${CMAKE_CURRENT_SOURCE_DIR}/app_interface.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/app_manager.h
	${CMAKE_CURRENT_SOURCE_DIR}/app_manager.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/async_listener.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_listener_impl.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_listener_impl.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/async_packet_socket.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_packet_socket_impl.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_packet_socket_impl.cpp
)

SOURCE_GROUP(${BUILD_PROJECT_NAME} FILES
	${CMAKE_CURRENT_SOURCE_DIR}/event_service.h
	${CMAKE_CURRENT_SOURCE_DIR}/event_service.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/app_interface.h
	${CMAKE_CURRENT_SOURCE_DIR}/app_interface.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/app_manager.h
	${CMAKE_CURRENT_SOURCE_DIR}/app_manager.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/async_listener.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_listener_impl.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_listener_impl.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/async_packet_socket.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_packet_socket_impl.h
	${CMAKE_CURRENT_SOURCE_DIR}/async_packet_socket_impl.cpp
)

add_library(${BUILD_PROJECT_NAME} STATIC ${SRC_LIST})


